//Nesne davranislarini gormek icin olusturuldu...
public class Ogrenci {
	String ad;
	String soyad;

	public static void main(String[] args) {

		Ogrenci o1 = new Ogrenci();
		o1.ad = "Melih";
		o1.soyad = "Sakarya";

		Ogrenci o2 = new Ogrenci();
		o2.ad = "Ahmet";
		o2.soyad = "Dursun";

		System.out.println(o1.ad + " " + o1.soyad);
		System.out.println(o2.ad + " " + o2.soyad);
		System.out.println("**********");
		
		o1 = o2;
		
		System.out.println(o1.ad + " " + o1.soyad);
		System.out.println(o2.ad + " " + o2.soyad);
		System.out.println("**********");
		

		o1.ad = "Mehmet";
		
		System.out.println(o1.ad + " " + o1.soyad);
		System.out.println(o2.ad + " " + o2.soyad);
		System.out.println("**********");
	}
}
